<?php
/**
 * 文章列表验证器
 */

namespace app\common\validate;

class AdminContentValidate extends Validate
{
    protected $rule = [
            'pid|分类id' => 'require',
    'title|标题' => 'require',
    'content|内容' => 'require',

    ];

    protected $message = [
            'pid.require' => '分类id不能为空',
    'title.require' => '标题不能为空',
    'content.require' => '内容不能为空',

    ];

    protected $scene = [
        'add'  => ['pid','title','content',],
'edit' => ['pid','title','content',],

    ];

    

}
